using System;
using System.Collections.Generic;
using System.Text;

namespace StartMenuSearcher
{
	internal class ShortcutComparator : IEqualityComparer<Shortcut>
	{
		public bool Equals(Shortcut x, Shortcut y)
		{
			return x.Path == y.Path && x.Arguments == y.Arguments && x.Name == y.Name && x.WorkingDirectory == y.WorkingDirectory;
		}

		public int GetHashCode(Shortcut obj)
		{
			return (obj.Path + obj.Arguments + obj.Name + obj.WorkingDirectory).GetHashCode();
		}
	}
}
